const CellType = {
  ANIMAL: 0,
  WALL: 1,
  PATH: 2,
  PATH_BOTH: 3,
  ROUTE: 4,
  ROUTE_HORIZONTAL: 5,
  ROUTE_VERTICAL: 6,
  ROUTE_BOTH: 7,
  isPath: function(type) {
    return type === CellType.PATH ||
      type === CellType.PATH_BOTH;
  },
  isRoute: function(type) {
    return type === CellType.ROUTE_VERTICAL ||
      type === CellType.ROUTE_HORIZONTAL ||
      type === CellType.ROUTE_BOTH ||
      type === CellType.ROUTE;
  },
  isBlock: function(type) {
    return type === CellType.WALL ||
      type === CellType.ROUTE ||
      type === CellType.ROUTE_BOTH;
  },
};

module.exports = CellType;
